package cn.springboot.pioneermall.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
public class DownLoadConfig {

    private static String profile;
    @Value("${spring.profile}")
    public void setProfilePath( String profile) {
        DownLoadConfig.profile = profile;
    }

    public static String getProfilePath() {
        return profile;
    }

    public static String getUploadPath() {
        return getProfilePath() +"/upload/";
    }

    public static String getDownloadPath()
    {
        return getProfilePath() + "/download/";
    }



}
